﻿@model Orion.Models.Question

<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@{ Html.EnableClientValidation(); }

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    
    <fieldset>
        <legend>Fyrirspurnar form</legend>

        @Html.HiddenFor(model => model.RecipientId)
        @Html.HiddenFor(model => model.Recipient)

        <div class="editor-label">
        <p>Þú ert að senda fyrirspurn til <b>@Model.Recipient </b></p>
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Title,"Titill")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Question1,"Spurning")
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Question1)
            @Html.ValidationMessageFor(model => model.Question1)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email,"Tölvupóstur")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Telephone,"Sími")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Telephone)
            @Html.ValidationMessageFor(model => model.Telephone)
        </div>
                              
        <p>
            <input type="submit" value="Senda" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Til Baka", "Contact","Home")
</div>
